package com.ywjh.inter.entity;

import java.sql.Timestamp;

public class EquInsulinStatEntity {
	private int id;
	private String equ_no;
	private Timestamp equ_time;
	private float dosage_less;
	private float power_less;
	private Timestamp add_time;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getEqu_no() {
		return equ_no;
	}
	public void setEqu_no(String equ_no) {
		this.equ_no = equ_no;
	}
	public Timestamp getEqu_time() {
		return equ_time;
	}
	public void setEqu_time(Timestamp equ_time) {
		this.equ_time = equ_time;
	}
	public float getDosage_less() {
		return dosage_less;
	}
	public void setDosage_less(float dosage_less) {
		this.dosage_less = dosage_less;
	}
	public float getPower_less() {
		return power_less;
	}
	public void setPower_less(float power_less) {
		this.power_less = power_less;
	}
	public Timestamp getAdd_time() {
		return add_time;
	}
	public void setAdd_time(Timestamp add_time) {
		this.add_time = add_time;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((add_time == null) ? 0 : add_time.hashCode());
		result = prime * result + Float.floatToIntBits(dosage_less);
		result = prime * result + ((equ_no == null) ? 0 : equ_no.hashCode());
		result = prime * result + ((equ_time == null) ? 0 : equ_time.hashCode());
		result = prime * result + id;
		result = prime * result + Float.floatToIntBits(power_less);
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		EquInsulinStatEntity other = (EquInsulinStatEntity) obj;
		if (add_time == null) {
			if (other.add_time != null)
				return false;
		} else if (!add_time.equals(other.add_time))
			return false;
		if (Float.floatToIntBits(dosage_less) != Float.floatToIntBits(other.dosage_less))
			return false;
		if (equ_no == null) {
			if (other.equ_no != null)
				return false;
		} else if (!equ_no.equals(other.equ_no))
			return false;
		if (equ_time == null) {
			if (other.equ_time != null)
				return false;
		} else if (!equ_time.equals(other.equ_time))
			return false;
		if (id != other.id)
			return false;
		if (Float.floatToIntBits(power_less) != Float.floatToIntBits(other.power_less))
			return false;
		return true;
	}
	
	
}
